Re: Export on word Mathias Mamsch - Thu Nov 08 15:10:14 EST 2012
The questions for you are here and you need to answer them completely separately:
-
How do I get the class names, procedure texts and types from my DOORS module
-
Provided I have the classes, their test procedures and their types, how exactly would I lay them out in my word document.
Technically of course what you ask is possible. You need to know the following:
-
all non commercial exporters will allow you to do a word export in table format from a DOORS view, that means, that for each object in your DOORS module you can have one table row and for each column in your view you get one table column in your word document. The content is completely customizable by DXL layout/attribute DXL, you can filter your views, and insert the columns you like. However at some point your DXL columns will become so complex, that you might decide to write a custom exporter that will bring you the format you want. You could write a program like follows:
int classes = getNrOfClasses()
int tableColumns = classes * 2;
int tableRows = getNrOfProcedures()
OleAutoObj wDoc = Word_Make_New_Document ()
OleAutoObj wTable = Word_Make_Table(wDoc, tableRows, tableColumns)
int col = 0
for className in getClassNames() do {
int row = 1
// write the class name
fill_word_table_cell (wTable, 0, col+1, className)
for procedureText in getProcedures(className) do {
// write the classes and the procedure texts
fill_word_table_cell (wTable, row, col , getClassType(className, procedureText))
fill_word_table_cell (wTable, row, col+1, procedureText)
}
col += 2
}
which provided with the right functions getClassNames, getClassType, etc., would give you a table like in your picture. The only thing you need to do is implement all the functions that are referenced here. I hope that helps, regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: Export on word SystemAdmin - Mon Nov 12 08:17:06 EST 2012 Mathias Mamsch - Thu Nov 08 15:10:14 EST 2012
The questions for you are here and you need to answer them completely separately:
-
How do I get the class names, procedure texts and types from my DOORS module
-
Provided I have the classes, their test procedures and their types, how exactly would I lay them out in my word document.
Technically of course what you ask is possible. You need to know the following:
-
all non commercial exporters will allow you to do a word export in table format from a DOORS view, that means, that for each object in your DOORS module you can have one table row and for each column in your view you get one table column in your word document. The content is completely customizable by DXL layout/attribute DXL, you can filter your views, and insert the columns you like. However at some point your DXL columns will become so complex, that you might decide to write a custom exporter that will bring you the format you want. You could write a program like follows:
int classes = getNrOfClasses()
int tableColumns = classes * 2;
int tableRows = getNrOfProcedures()
OleAutoObj wDoc = Word_Make_New_Document ()
OleAutoObj wTable = Word_Make_Table(wDoc, tableRows, tableColumns)
int col = 0
for className in getClassNames() do {
int row = 1
// write the class name
fill_word_table_cell (wTable, 0, col+1, className)
for procedureText in getProcedures(className) do {
// write the classes and the procedure texts
fill_word_table_cell (wTable, row, col , getClassType(className, procedureText))
fill_word_table_cell (wTable, row, col+1, procedureText)
}
col += 2
}
which provided with the right functions getClassNames, getClassType, etc., would give you a table like in your picture. The only thing you need to do is implement all the functions that are referenced here. I hope that helps, regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Thank you Mathias for your help.
I just have a question the functions : getClassNames, getClassType, etc.
I need to creat them or i can find them somewhere.
|
Re: Export on word Mathias Mamsch - Mon Nov 12 09:35:28 EST 2012 SystemAdmin - Mon Nov 12 08:17:06 EST 2012
Thank you Mathias for your help.
I just have a question the functions : getClassNames, getClassType, etc.
I need to creat them or i can find them somewhere.
Well, you would create these functions of course, but it is probably not easy for a DXL newcomer. You need to get a copy of some word library and then implement the functions. However I think the above snipped (while it contains an error with the counter variables) will probably NOT fit what you had in mind, because you provided not enough information about the layout of your word file and the information of your DOORS module.
Therefore I suggest you tell us in a little more detail, what information you are displaying (and why) in the word file and tell us how that information is represented in your module (e.g. I have a DXL layout column that shows linked test procedures for the classes in the module... Test procedures are in a separate modules and link to ... Classes are ...) . That will help us people to give suggestions to you on how to approach this. If you are lucky, you do NOT need to implement a custom exporter, but can use some clever DXL columns and a standard word exporter.
Regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|